import request from "@/utils/request";

export function getArticleList(query) {
  return request({
    url: '/cms/article/list',
    method: 'get',
    params: query
  })
}

export function getArchives(query) {
  return request({
    url: '/cms/article/getArchives',
    method: 'get',
    params: query
  })
}

export function updateArchives(data) {
  return request({
    url: '/cms/article/edit',
    method: 'post',
    data: data
  })
}

export function saveArchives(data) {
  return request({
    url: '/cms/article/save',
    method: 'post',
    data: data
  })
}
